package com.heimali.sf.receiver;

import com.heimali.sf.calendar.NoteDetailActivity;
import com.heimali.sf.debug.Console;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class AlarmReceiver extends BroadcastReceiver{

	@Override
	public void onReceive(Context context, Intent intent) {
		int id = intent.getIntExtra(NoteDetailActivity.INTENT_NOTE_ID, -1);
		Console.log("AlarmReceiver onReceive", id);
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		intent.setClass(context, NoteDetailActivity.class);
        context.startActivity(intent);
	}

}
